

package com.zmks.jkgj.xuexiao.controller;




import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.zmks.jkgj.core.controller.ABaseController;
import com.zmks.jkgj.core.resp.Resp;
import com.zmks.jkgj.xuexiao.SessionManager;
import com.zmks.jkgj.xuexiao.resp.WebResp;
import com.zmks.jkgj.xuexiao.service.ICrctBusiSendExamLogService;
import com.zmks.jkgj.xuexiao.vo.CrctBusiSendExamLogVO;


@Controller
public class CrctBusiSendExamLogController extends ABaseController {
	
	@Autowired
	private ICrctBusiSendExamLogService crctBusiSendExamLogService;	
	
	 //查询用户
	@RequestMapping("/get_CrctBusiSendExamLog_list")
	@ResponseBody
	public Resp get_CrctBusiSendExamLog_list( Integer pageIndex,
			Integer pageSize,HttpServletRequest request) {
		WebResp 	webResp = new WebResp();
		CrctBusiSendExamLogVO crctBusiSendExamLogVO=new  CrctBusiSendExamLogVO();
		 String  school_oid = SessionManager.getsession(request).getSchool_oid();
		 crctBusiSendExamLogVO.setSchool_oid(Long.parseLong(school_oid));
		webResp.setData(crctBusiSendExamLogService.getList(crctBusiSendExamLogVO));
		webResp.setTotalCount(crctBusiSendExamLogService.getCount(crctBusiSendExamLogVO));
		return webResp;
	}
	 //发送通知
	@RequestMapping("/save_CrctBusiSendExamLog")
	@ResponseBody
	public Resp save_CrctBusiSendExamLog(String  exam_id,String  exam_name,HttpServletRequest request) {
		WebResp 	webResp = new WebResp();
		CrctBusiSendExamLogVO crctBusiSendExamLogVO=new  CrctBusiSendExamLogVO();
		 String  school_oid = SessionManager.getsession(request).getSchool_oid();
		 crctBusiSendExamLogVO.setSchool_oid(Long.parseLong(school_oid));
		crctBusiSendExamLogVO.setExam_id(exam_id);
		crctBusiSendExamLogVO.setExam_name(exam_name);
	   crctBusiSendExamLogVO.setCreate_date(new Date());
		crctBusiSendExamLogService.save(crctBusiSendExamLogVO);
		return webResp;
	}
	
	
	
	

}
